package lab.ddc.controller;

import com.jfinal.core.Controller;
import com.jfinal.ext.route.ControllerBind;

@ControllerBind(controllerKey = "/")
public class IndexController extends Controller {
	
	public void index(){
	    if (getSessionAttr("name")==null)
	    	render("login.html");
	    else {
			render("admin/index.ftl");
		}
	}
	
}
